import 'package:freezed_annotation/freezed_annotation.dart';

import 'address.dart';

part 'address_list.freezed.dart';

part 'address_list.g.dart';

@freezed
abstract class AddressList with _$AddressList {
  factory AddressList({
    bool needVerifyCode,
    @Default([]) List<Address> addressItems,
  }) = _AddressList;

  factory AddressList.fromJson(Map<String, dynamic> json) => _$AddressListFromJson(json);
}
